var Person = require('./person').Person;

var person = new Person('Tom', 21);

function personTestIntroduce() {
    var expectResult = 'My name is Tom. I am 21 years old.';
    if (person.introduce() === expectResult) {
        console.log('test passed');
    } else {
        console.log('test failed');
    }
}

personTestIntroduce();

function personTestBasicIntroduce() {
    var expectResult = 'My name is Tom. I am 21 years old.'
    if (person.basicIntroduce() === expectResult) {
        console.log('test passed');
    } else {
        console.log('test failed');
    }
}

personTestBasicIntroduce();